package com.sharedlease.utils;

import org.springframework.util.Base64Utils;

/**
 * @author Laymedown
 */
public class Md5Util {

    public static String encryption(String text){
        return Base64Utils.encodeToUrlSafeString(text.getBytes());
    }
    
    public static String decrypt(String result){
        return new String(Base64Utils.decodeFromUrlSafeString(result));
    }

}
